/**
 * @description profile页面的api
 * @author 印明帝
 */
import { axios, _formateAxiosData } from './axiosInstance'

/***
  * 加载更多博客
  * @method loadMoreBlog
  * @param id 用户id
  * @param index 当前分页
  * @returns {Promise}
  */
async function getProfileInfo (id, index) {
  let result = await axios.get('/profile', {
    params: {
      id,
      index
    }
  })
  return _formateAxiosData(result)
}

export {
  getProfileInfo
}
